package com.example.livestockbreedingapplication.domain;

public class CollectData {
    //日期时间
    private String datetime;
    //采集节点编号
    private String collectNum;
    //采集节点id
    private String collectId;
    //温度
    private Double temp;
    //湿度
    private Long humi;
    //Co2浓度
    private Long co2;
    //Nh3浓度
    private Long nh3;

    public CollectData(String datetime, String collectNum, String collectId, Double temp, Long humi, Long co2, Long nh3) {
        this.datetime = datetime;
        this.collectNum = collectNum;
        this.collectId = collectId;
        this.temp = temp;
        this.humi = humi;
        this.co2 = co2;
        this.nh3 = nh3;
    }

    public CollectData() {
        super();
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime == null ? null : datetime.trim();
    }

    public String getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(String collectNum) {
        this.collectNum = collectNum == null ? null : collectNum.trim();
    }

    public String getCollectId() {
        return collectId;
    }

    public void setCollectId(String collectId) {
        this.collectId = collectId == null ? null : collectId.trim();
    }

    public Double getTemp() {
        return temp;
    }

    public void setTemp(Double temp) {
        this.temp = temp;
    }

    public Long getHumi() {
        return humi;
    }

    public void setHumi(Long humi) {
        this.humi = humi;
    }

    public Long getCo2() {
        return co2;
    }

    public void setCo2(Long co2) {
        this.co2 = co2;
    }

    public Long getNh3() {
        return nh3;
    }

    public void setNh3(Long nh3) {
        this.nh3 = nh3;
    }

    @Override
    public String toString() {
        return "CollectData{" +
                "datetime='" + datetime + '\'' +
                ", collectNum='" + collectNum + '\'' +
                ", collectId='" + collectId + '\'' +
                ", temp=" + temp +
                ", humi=" + humi +
                ", co2=" + co2 +
                ", nh3=" + nh3 +
                '}';
    }
}